import request from '@/utils/request'

export function getMessage(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_UserMessage.MessageList',
    method: 'post',
    data,
  })
}

export function addMessage(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_UserMessage.AddMessage',
    method: 'post',
    data,
  })
}

export function deleteMessage(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_UserMessage.DeleteMessage',
    method: 'post',
    data,
  })
}

export function setView(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_UserMessage.ModifyMessageViewStatus',
    method: 'post',
    data,
  })
}

export function getMessageTpl(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_MessageTpl.MessageTplGroupQuery',
    method: 'post',
    data,
  })
}

export function addMessageTpl(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_MessageTpl.AddMessageTplGroup',
    method: 'post',
    data,
  })
}

export function editMessageTpl(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_MessageTpl.UpdateMessageTplGroup',
    method: 'post',
    data,
  })
}

export function deleteMessageTpl(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_MessageTpl.DeleteMessageTplGroup',
    method: 'post',
    data,
  })
}

export function getTplList(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_MessageTpl.MessageTplQuery',
    method: 'post',
    data,
  })
}

export function editTplList(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_MessageTpl.UpdateMessageTpl',
    method: 'post',
    data,
  })
}
